
package com.xtsoft.platform.base.system.service.impl;
/*
*    上海信拓信息技术有限公司 Koala企业综合信息管理系统
*    Copyright (C) 2010-2015 ShangHai XinTuo Software Inc.
*/


import com.xtsoft.core.service.impl.GenericServiceImpl;
import com.xtsoft.platform.base.system.domain.SysTrade;
import com.xtsoft.platform.base.system.repository.SysTradeRepository;
import com.xtsoft.platform.base.system.service.SysTradeService;
import com.xtsoft.platform.globe.enums.YesNo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysTradeService")
public class SysTradeServiceImpl extends GenericServiceImpl<SysTrade,String, SysTradeRepository> implements SysTradeService {

	@Autowired
	public SysTradeRepository sysTradeRepository;
//
//	@Override
//	public List<SysTrade> getCombox() {
//		return sysTradeRepository.findByState(YesNo.Yes.getIntValue());
//	}

	@Override
	public List<SysTrade> getCombox() {
		// TODO Auto-generated method stub
		return sysTradeRepository.findByState(YesNo.Yes.getIntValue());
	}
	

}